import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Page/Home'
import Food from '@/components/Page/Food'
import Heath from '@/components/Page/Heath'
import User from '@/components/Page/User'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: {
        name: 'home'
      }
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/food',
      name: 'food',
      component: Food
    },
    {
      path: '/heath',
      name: 'heath',
      component: Heath
    },
    {
      path: '/user',
      name: 'user',
      component: User
    },
  ]
})
